home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
TransSkel 3.24
/
Documents
/
Tutorial
/
Examples
/
SimpleApp2.c
< prev
next >
Wrap
Text File
|
1996-01-17
|
675b
|
29 lines
# include "TransSkel.h"
static pascal void
DoFileMenu (short item)
{
SkelStopEventLoop (); /* tell SkelEventLoop() to quit */
}
int
main (void)
{
MenuHandle m;
SkelInit (nil); /* initialize */
SkelApple (nil, nil); /* handle Apple menu */
/* create File menu, install handler */
m = NewMenu (skelAppleMenuID + 1, "\pFile");
AppendMenu (m, "\pQuit/Q");
(void) SkelMenu (m, /* menu handle */
DoFileMenu, /* item selection function */
nil, /* menu disposal function */
false, /* not a submenu */
true); /* draw menu bar */
SkelEventLoop (); /* loop 'til Quit selected */
SkelCleanup (); /* clean up */
}